package com.kis.pojo;

import com.kis.pattern.builder.UserBuilder;

/**
 * Created by yks on 15-11-14.
 */
public class User {
    private Long id;
    private long ids;
    private String username;
    private String password;

    public Long getId() {
        return id;
    }

    public void setId(Long id) {
        this.id = id;
    }

    public User(UserBuilder u) {
        this.id=u.getId();
        this.ids=u.getIds();
        this.username=u.getUsername();
        this.password=u.getPassword();
    }

    public User(Long id, long ids, String username, String password) {
        this.id = id;
        this.ids = ids;
        this.username = username;
        this.password = password;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public long getIds() {
        return ids;
    }

    public void setIds(long ids) {
        this.ids = ids;
    }

    @Override
    public String toString() {
        return "User{" +
                "id=" + id +
                ", ids=" + ids +
                ", username='" + username + '\'' +
                ", password='" + password + '\'' +
                '}';
    }
}
